import { FC } from 'react';
import { useParams, useSearchParams } from 'react-router-dom';

const Star: FC = () => {
  const { id } = useParams();
  const [params] = useSearchParams();
  console.log(params.get('key'));

  return (
    <div>
      <h1>Star</h1>
      <div>id: {id}</div>
    </div>
  );
};

export default Star;
